package com.leyu.mall.service.cms.impl;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.leyu.mall.dao.cms.CmsNewsTypeMapper;
import com.leyu.mall.domain.cms.CmsNewsType;
import com.leyu.mall.service.cms.ICmsNewsTypeService;


@Service
@Transactional(rollbackFor=Exception.class)
public class CmsNewsTypeServiceImpl implements ICmsNewsTypeService{
	
	
	@Resource
	private CmsNewsTypeMapper cmsNewsTypeMapper;
	
	
	public List<CmsNewsType> getCmsNewsTypeList()throws Exception{
	return this.cmsNewsTypeMapper.getAllCmsNewsType();	
	}
	
public void deleteCmsNewsType(Long id) throws Exception{
	this.cmsNewsTypeMapper.deleteCmsNewsType(id);
}
	
	public void save(CmsNewsType entity) throws Exception{
		this.cmsNewsTypeMapper.save(entity);
	}
}

 
	